<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/25
 * Time: 11:57
 */
/**
 * PHP使用array_fill定义多维数组的方法
 */
require_once '../common_funtion.php';
$creation = array_fill(0, 3, array_fill(0, 2, null));
//pre($creation);
$val_num=1;
for ($i = 0; $i < 3; $i++) {
    for ($j = 0; $j < 2; $j++) {
        $val_num+=$val_num;
        $creation[$i][$j]=$val_num;
    }
}
pre($creation);